package com.gxc.graph;

import java.util.ArrayList;

/**
 * 点
 */
public class Node {

    public int value;
    public int in;
    public int out;
    public ArrayList<Node> nexts;
    public ArrayList<Edge> edges;

    public Node(int value) {
        this.value = value;
        this.in = 0;
        this.out = 0;
        this.nexts = new ArrayList<>();
        this.edges = new ArrayList<>();
    }

    public Node(int value, int in, int out) {
        this.value = value;
        this.in = in;
        this.out = out;
        this.nexts = new ArrayList<>();
        this.edges = new ArrayList<>();
    }

    public Node(int value, int in, int out, ArrayList<Node> nexts, ArrayList<Edge> edges) {
        this.value = value;
        this.in = in;
        this.out = out;
        this.nexts = nexts;
        this.edges = edges;
    }
}
